package com.dk.mapper;

import com.dk.Vo.TBookVo;
import com.dk.pojo.TBook;
import com.dk.pojo.TBookExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TBookMapper {
    int countByExample(TBookExample example);

    int deleteByExample(TBookExample example);

    int deleteByPrimaryKey(Integer bookId);

    int insert(TBook record);

    int insertSelective(TBook record);

    List<TBook> selectByExample(TBookExample example);

    TBook selectByPrimaryKey(Integer bookId);

    int updateByExampleSelective(@Param("record") TBook record, @Param("example") TBookExample example);

    int updateByExample(@Param("record") TBook record, @Param("example") TBookExample example);

    int updateByPrimaryKeySelective(TBook record);

    int updateByPrimaryKey(TBook record);

    List<TBookVo> getInfoServer(@Param("bookName")String bookName,@Param("publisher")Integer publisher,@Param("author")Integer author,@Param("bookCategory")Integer bookCategory);

    void deleteBatch(@Param("ids")Integer[] ids);

    List<TBookVo> getInfoServers(@Param("bookName")String bookName,@Param("publisher")Integer publisher,@Param("author")Integer author,@Param("bookCategory")Integer bookCategory);
}